public class Demo03 {
    public static void main(String[] args) {
        Student1 s = new Student1(24031336,"粑粑",23,60,61,62);
        s.output();
        s.average();
    }
}
class Student1{
    int id;
    String name;
    int age;
    double english;
    double math;
    double computer;

    public Student1(int id, String name, int age, double english, double math, double computer) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.english = english;
        this.math = math;
        this.computer = computer;
    }

    public  void output(){
        System.out.println(id+name+age);
        System.out.println(english+" "+math+" "+computer);
    }
    public void average(){
        double ave = (math+english+computer)/3;
        System.out.println(ave);
    }

}
